//
//  newsTitle.m
//  19-JSON网易
//
//  Created by 鹏飞罗 on 16/8/9.
//  Copyright © 2016年 罗鹏飞. All rights reserved.
//

#import "newsTitle.h"

@implementation NewsTitle
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+ (NewsTitle *)newsTitleWithDic:(NSDictionary *)dic {
    return [[self alloc] initWithDic:dic];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"templete"]) {
        _news_template = value;
    }
}
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
